<!--
 * @Author: your name
 * @Date: 2021-05-10 11:59:53
 * @LastEditTime: 2021-05-10 12:48:19
 * @LastEditors: Please set LastEditors
 * @Description: In User Settings Edit
 * @FilePath: \vue01d:\HTML001\布局小技巧\0.5px的线\0.5px的线.html
-->
<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Document</title>
    <style>
      .btn {
        width: 100px;
        height: 1px;
        transform: scale(0.5);
        background-color: red;
      }
      .btnn {
        width: 200px;
        height: 200px;
        background-color: red;
        clip-path:polygon(50% 0%, 100% 100%, 50% 100% ,0% 100%) ;
      }
    </style>
  </head>
  <body>
    <div class="btn"></div>
    <div class="btnn"></div>
  </body>
</html>
